﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp6.ViewModels
{
    /// <summary>
    /// 集合通知
    /// </summary>
    public class BindListViewModel : ObservableObject
    {
        public ObservableCollection<PersonViewModel> Persons { get; set; } = new ObservableCollection<PersonViewModel>()
        {
            new PersonViewModel()
            {
                Name="张三",
                Age=18,
                Address="北京",
                Job="程序员"
            },
            new PersonViewModel()
            {
                Name="李四",
                Age=20,
                Address="上海",
                Job="程序员"
            },
            new PersonViewModel()
            {
                Name="王五",
                Age=22,
                Address="广州",
                Job="文员"
            }
        };
    }
}
